package com.lizhao.win007com.match.service;

import com.lizhao.win007com.commons.pojo.match.model.Match;
import com.lizhao.win007com.commons.pojo.match.vo.MatchVO;
import com.lizhao.win007com.commons.pojo.match.vo.RelationInfoVO;
import com.lizhao.win007com.commons.restful.JsonPage;
import io.swagger.models.auth.In;

import java.math.BigDecimal;
import java.util.List;

public interface IMatchService {
    //让球数据
    JsonPage<Match> getMatchInfoByTableAndCompanyIdAndPageAndPageSize(String table,Integer companyid, Integer pageNum, Integer pageSize);

    //获取总记录数
    Integer getTotal(String table);

    //通过id删除数据
    void deleteByTableAndId(String table,Integer id);

    //获取对阵数据
    List<MatchVO> getOpposeByLeagueIdAndCompanyId(Integer leagueid, Integer companyid);

    //通过leagueid、code、season、companyid获取赛事数据
   List<RelationInfoVO> getMatchByLeagueIdAndSeasonAndCompanyId(Integer leagueid, String season, Integer companyid);
}
